﻿using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hardware.Meter
{
    public class Settings
    {
        /// <summary>串口设置 </summary>
        public class Port
        {
            //public static string PortName = "COM1";
            //public static int BaudRate = 115200;
            //public static int DataBits = 8;
            //public static System.IO.Ports.Parity Parity = System.IO.Ports.Parity.None;
            //public static System.IO.Ports.StopBits StopBits = System.IO.Ports.StopBits.One;
            //public static System.IO.Ports.Handshake Handshake = System.IO.Ports.Handshake.None;            
            public Port(){
                
            }
            public int baudRate { get; set; }

            public int dataBits { get; set; }

            public string portName { get; set; }

            public Parity parity { get; set; }

            public StopBits stopBits { get; set; }
           
        }
        
    }
}
